package com.knowledge.graph.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;

import java.io.Serializable;

/**
 * @author jiwenlong
 * @version 1.0
 * @description: 学科知识图谱中，数据结构课程类型的节点
 * @date 2023/11/10 11:50
 */
@Data
@NodeEntity(label = "节点")
@AllArgsConstructor
@NoArgsConstructor
public class Entity implements Serializable {

    @Id
    @GeneratedValue
    private Long id;
    @Property(name = "name")
    private String name;

    @Property(name = "type")
    private String type;

    public Entity(String name, String type) {
        this.name = name;
        this.type = type;
    }

}
